<?php
function callback($buffer) {
    return preg_replace('/\s+/', ' ', $buffer);
}
ob_start("callback");
?>
<div style="background: #54300E; height:20px;margin-bottom:10px;color:#FFF;padding:5px;"><?php echo $this->catName;?></div>
<div style="padding:5px;">
    <div id="leftmenucontent">
    <?php
    $children = $this->child;
    if(count($children) > 0) {
    ?>
    <ol>
    <?php
        foreach($children as $child):
    ?>
        <li style="padding-bottom:3px;">
            <a onclick="$('.content<?php echo $child->category_id;?>').fadeIn()" style="color: #54300E;cursor: pointer;text-decoration: underline;"><?php echo $child->admin_title;?></a>
            <div id="box" style="display:none;" class="mbcontentcls content<?php echo $child->category_id;?>" >
                <div class="lightBox" style="vertical-align: middle"> </div>
                    <div class="containerPlus resizable {width:640, height:480, skin:'white'}" >
                        <div class="no"><div class="ne"><div class="n" style="border-bottom:1px solid #000;"><?php echo $this->catName;?></div></div>
                            <div class="o"><div class="e"><div class="c">
                                <div class="mbcontainercontent">
                                    <h3><?php echo $child->admin_title;?></h3>
                                    <p><?php echo $child->short_description;?></p>
                                    <p><?php echo $child->description;?></p>
                                </div>
                            </div></div></div>
                            <div >
                                <div class="so"><div class="se"><div class="s"></div></div></div>
                            </div>
                        </div>
                    </div>
            </div>
        </li>
    <?php
        endforeach; // child
    ?>
    </ol>
    <?php
    } // if count child
    ?>
    </div>
</div>
<?php
ob_end_flush();
?>